<?php $this->headTitle('Btree - index'); ?>
<p>
    <a href="<?php echo $this->baseUrl("/index/registry"); ?>">Đăng kí</a>
    |
    <a href="<?php echo $this->baseUrl("/index/rstory"); ?>">Đọc truyện</a>
    |
    <a href="<?php echo $this->baseUrl("/index/leoteo"); ?>">Linh tinh</a>
    |
    <a href="<?php echo $this->baseUrl("/index/productx"); ?>">Productx</a>
    |
    <a href="<?php echo $this->baseUrl("/index/btree"); ?>">Btree</a>
    |
    [<?php echo $this->status; ?>]
</p>
<p>Thông tin tài khoản:</p>
<table width="200" border="1">
    <tr>
        <td>Id</td>
        <td>Name</td>
        <td>ParentId</td>
        <td>LeftId</td>
        <td>RightId</td>
        <td>Money</td>
        <td>Level</td>
    </tr> 
    <?php
    if ($this->nod != NULL) {
        foreach ($this->nod as $value) {
            echo '<tr>';
            echo "<td>{$value['Id']}</td>";
            echo "<td>{$value['Name']}</td>";
            echo "<td>{$value['ParentId']}</td>";
            echo "<td>{$value['LeftId']}</td>";
            echo "<td>{$value['RightId']}</td>";
            echo "<td>{$value['Money']}</td>";
            echo "<td>{$value['Level']}</td>";
            echo '</tr>';
        }
    }
    ?>
</table>